package com.nuorui.module.supper.dict.domain.form;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 字典数据表 新建表单
 *
 * @Author 1024创新实验室-主任-卓大
 * @Date 2025-03-25 23:12:59
 * @Copyright <a href="https://1024lab.net">1024创新实验室</a>
 */
@Data
public class DictDataForm {

    @ApiModelProperty(value = "字典id")
    @NotNull(message = "字典id 不能为空")
    private Long dictId;

    @ApiModelProperty(value = "字典项值")
    @NotBlank(message = "字典项值 不能为空")
    private String dataValue;

    @ApiModelProperty(value = "字典项显示名称")
    @NotBlank(message = "字典项显示名称 不能为空")
    private String dataLabel;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "排序（越大越靠前）")
    @NotNull(message = "排序（越大越靠前） 不能为空")
    private Integer sortOrder;

}